/**
 * 
 */
package com.lehecai.core.lottery.fetcher.dc.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.lehecai.core.lottery.fetcher.FetcherType;
import com.lehecai.core.lottery.fetcher.dc.AbstractDcLotteryDrawFetchWorker;
import com.lehecai.core.lottery.fetcher.dc.DcLotteryDrawItem;
import com.lehecai.core.lottery.fetcher.dc.impl.worker.DcVirtualLotteryDrawFetchWorkerPengineAPI;

/**
 * 通用北单赛程开奖结果抓取
 *
 */
public class DcVirtualLotteryDrawFetcher extends BaseDcLotteryDrawFetcher {
	
	protected final Logger logger = LoggerFactory.getLogger(this.getClass().getName());

	/**
	 * 获取默认抓取类型
	 * @return
	 */
	protected FetcherType getDefaultFetcherType(){
		return FetcherType.T_PENGINEAPI;
	}
	
	/**
	 * 从PEngine的虚拟API获取北单开奖结果和SP值
	 * @param phase
	 * @return
	 */
	protected List<DcLotteryDrawItem> fetchPengineAPI(String phase){
		AbstractDcLotteryDrawFetchWorker worker = new DcVirtualLotteryDrawFetchWorkerPengineAPI();
		return worker.fetchDcLotteryDraw(phase);
	}
}
